//
//  Loader.m
//  Risiko
//
//  Created by Murgia Giovanni on 06/07/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Loader.h"


@implementation Loader
-(id) init{
	[super init];
	NSMutableSet * tmpCountries = [[NSMutableSet alloc]init];
	NSMutableSet * tmpContinents = [[NSMutableSet alloc]init];
	// FINE DEL DIVERTIMENTO
	//NORD AMERICA
	Continent * coTmp = [[Continent alloc]initWithName:@"Nord America"];
	[tmpContinents addObject:coTmp];
	Country * cTmp = [[Country alloc]initWithName:@"Alaska"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Territori dell'Ovest"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Groenlandia"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Alberta"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Ontario"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Quebec"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Stati Uniti Occidentali"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Stati Uniti Orientali"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];

	cTmp = [[Country alloc]initWithName:@"America Centrale"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	//SUD AMERICA
	
	coTmp = [[Continent alloc]initWithName:@"Sud America"];
	[tmpContinents addObject: coTmp];
	
	cTmp = [[Country alloc]initWithName:@"Venezuela"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Perù"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Brasile"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Argentina"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	//EUROPA
	coTmp = [[Continent alloc]initWithName:@"Europa"];
	[tmpContinents addObject: coTmp];
	
	cTmp = [[Country alloc]initWithName:@"Islanda"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Scandinavia"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Gran Bretagna"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Europa Settentrionale"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Europa Occidentale"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Europa Meridionale"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Ucraina"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	//Africa
	coTmp = [[Continent alloc]initWithName:@"Africa"];
	[tmpContinents addObject: coTmp];
	
	cTmp = [[Country alloc]initWithName:@"Africa del Nord"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Egitto"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Congo"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Africa Orientale"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Africa del Sud"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Madagascar"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	//Asia
	
	coTmp = [[Continent alloc]initWithName:@"Asia"];
	[tmpContinents addObject: coTmp];
	
	cTmp = [[Country alloc]initWithName:@"Urali"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Siberia"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Jacuzia"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Cita"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Kamchatka"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Giappone"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Mongolia"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Afghanistan"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Medio Oriente"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"India"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Cina"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Siam"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	//Oceania
	coTmp = [[Continent alloc]initWithName:@"Oceania"];
	[tmpContinents addObject: coTmp];
	
	cTmp = [[Country alloc]initWithName:@"Indonesia"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Nuova Guinea"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Australia Orientale"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	cTmp = [[Country alloc]initWithName:@"Australia Occidentale"];
	[coTmp addCountry:cTmp];
	[tmpCountries addObject:cTmp];
	
	countries = [[NSSet alloc]initWithSet:tmpCountries];
	continents = [[NSSet alloc]initWithSet:tmpContinents];
	// ORA BISOGNA POPOLARE i nearCountries dei Countries
	Country * tmp;
	tmp = [self getCountryByName:@"Alaska"];
	[tmp addNearCountry:[self getCountryByName:@"Territori dell'Ovest"]];
	[tmp addNearCountry: [self getCountryByName:@"Alberta"]];
	[tmp addNearCountry: [self getCountryByName:@"Kamchatka"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"Territori dell'Ovest"];
	[tmp addNearCountry:[self getCountryByName:@"Alaska"]];
	[tmp addNearCountry: [self getCountryByName:@"Groenlandia"]];
	[tmp addNearCountry: [self getCountryByName:@"Alberta"]];
	[tmp addNearCountry: [self getCountryByName:@"Ontario"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"Groenlandia"];
	[tmp addNearCountry:[self getCountryByName:@"Islanda"]];
	[tmp addNearCountry: [self getCountryByName:@"Territori dell'Ovest"]];
	[tmp addNearCountry: [self getCountryByName:@"Ontario"]];
	[tmp addNearCountry: [self getCountryByName:@"Quebec"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"Alberta"];
	[tmp addNearCountry:[self getCountryByName:@"Ontario"]];
	[tmp addNearCountry: [self getCountryByName:@"Territori dell'Ovest"]];
	[tmp addNearCountry: [self getCountryByName:@"Alaska"]];
	[tmp addNearCountry: [self getCountryByName:@"Stati Uniti Occidentali"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"Ontario"];
	[tmp addNearCountry:[self getCountryByName:@"Quebec"]];
	[tmp addNearCountry: [self getCountryByName:@"Stati Uniti Orientali"]];
	[tmp addNearCountry: [self getCountryByName:@"Alberta"]];
	[tmp addNearCountry: [self getCountryByName:@"Groenlandia"]];
	[tmp addNearCountry: [self getCountryByName:@"Stati Uniti Occidentali"]];
	[tmp addNearCountry:[self getCountryByName:@"Territori dell'Ovest"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"Quebec"];
	[tmp addNearCountry:[self getCountryByName:@"Groenlandia"]];
	[tmp addNearCountry: [self getCountryByName:@"Stati Uniti Orientali"]];
	[tmp addNearCountry: [self getCountryByName:@"Ontario"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"Stati Uniti Occidentali"];
	[tmp addNearCountry:[self getCountryByName:@"Alberta"]];
	[tmp addNearCountry: [self getCountryByName:@"Ontario"]];
	[tmp addNearCountry: [self getCountryByName:@"Stati Uniti Orientali"]];
	[tmp addNearCountry: [self getCountryByName:@"America Centrale"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"Stati Uniti Orientali"];
	[tmp addNearCountry:[self getCountryByName:@"Quebec"]];
	[tmp addNearCountry: [self getCountryByName:@"Ontario"]];
	[tmp addNearCountry: [self getCountryByName:@"Stati Uniti Occidentali"]];
	[tmp addNearCountry: [self getCountryByName:@"America Centrale"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"America Centrale"];
	[tmp addNearCountry:[self getCountryByName:@"Venezuela"]];
	[tmp addNearCountry: [self getCountryByName:@"Stati Uniti Occidentali"]];
	[tmp addNearCountry: [self getCountryByName:@"Stati Uniti Orientali"]];
	[tmp setContinent:[self getContinentByName:@"Nord America"]];
	
	tmp = [self getCountryByName:@"Venezuela"];
	[tmp addNearCountry:[self getCountryByName:@"America Centrale"]];
	[tmp addNearCountry: [self getCountryByName:@"Brasile"]];
	[tmp addNearCountry: [self getCountryByName:@"Perù"]];
	[tmp setContinent:[self getContinentByName:@"Sud America"]];
	
	tmp = [self getCountryByName:@"Brasile"];
	[tmp addNearCountry:[self getCountryByName:@"Perù"]];
	[tmp addNearCountry: [self getCountryByName:@"Venezuela"]];
	[tmp addNearCountry: [self getCountryByName:@"Argentina"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa del Nord"]];
	[tmp setContinent:[self getContinentByName:@"Sud America"]];
	
	tmp = [self getCountryByName:@"Perù"];
	[tmp addNearCountry:[self getCountryByName:@"Brasile"]];
	[tmp addNearCountry: [self getCountryByName:@"Venezuela"]];
	[tmp addNearCountry: [self getCountryByName:@"Argentina"]];
	[tmp setContinent:[self getContinentByName:@"Sud America"]];
	
	tmp = [self getCountryByName:@"Argentina"];
	[tmp addNearCountry:[self getCountryByName:@"Perù"]];
	[tmp addNearCountry: [self getCountryByName:@"Brasile"]];
	[tmp setContinent:[self getContinentByName:@"Sud America"]];
	
	tmp = [self getCountryByName:@"Islanda"];
	[tmp addNearCountry:[self getCountryByName:@"Groenlandia"]];
	[tmp addNearCountry: [self getCountryByName:@"Gran Bretagna"]];
	[tmp addNearCountry: [self getCountryByName:@"Scandinavia"]];
	[tmp setContinent:[self getContinentByName:@"Europa"]];

	tmp = [self getCountryByName:@"Gran Bretagna"];
	[tmp addNearCountry:[self getCountryByName:@"Islanda"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Settentrionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Scandinavia"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Occidentale"]];
	[tmp setContinent:[self getContinentByName:@"Europa"]];
	
	tmp = [self getCountryByName:@"Scandinavia"];
	[tmp addNearCountry: [self getCountryByName:@"Islanda"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Settentrionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Ucraina"]];
	[tmp addNearCountry: [self getCountryByName:@"Gran Bretagna"]];
	[tmp setContinent:[self getContinentByName:@"Europa"]];
	
	tmp = [self getCountryByName:@"Europa Settentrionale"];
	[tmp addNearCountry:[self getCountryByName:@"Scandinavia"]];
	[tmp addNearCountry: [self getCountryByName:@"Gran Bretagna"]];
	[tmp addNearCountry: [self getCountryByName:@"Ucraina"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Occidentale"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Meridionale"]];
	[tmp setContinent:[self getContinentByName:@"Europa"]];
	
	tmp = [self getCountryByName:@"Europa Meridionale"];
	[tmp addNearCountry:[self getCountryByName:@"Africa del Nord"]];
	[tmp addNearCountry: [self getCountryByName:@"Medio Oriente"]];
	[tmp addNearCountry: [self getCountryByName:@"Ucraina"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Occidentale"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Settentrionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Egitto"]];
	[tmp setContinent:[self getContinentByName:@"Europa"]];
	
	tmp = [self getCountryByName:@"Europa Occidentale"];
	[tmp addNearCountry:[self getCountryByName:@"Africa del Nord"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Meridionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Settentrionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Gran Bretagna"]];
	[tmp setContinent:[self getContinentByName:@"Europa"]];
	
	tmp = [self getCountryByName:@"Ucraina"];
	[tmp addNearCountry:[self getCountryByName:@"Medio Oriente"]];
	[tmp addNearCountry: [self getCountryByName:@"Afghanistan"]];
	[tmp addNearCountry: [self getCountryByName:@"Urali"]];
	[tmp addNearCountry: [self getCountryByName:@"Scandinavia"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Settentrionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Meridionale"]];
	[tmp setContinent:[self getContinentByName:@"Europa"]];

	tmp = [self getCountryByName:@"Africa del Nord"];
	[tmp addNearCountry:[self getCountryByName:@"Egitto"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Occidentale"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Meridionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Congo"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa Orientale"]];
	[tmp addNearCountry: [self getCountryByName:@"Brasile"]];
	[tmp setContinent:[self getContinentByName:@"Africa"]];
	
	tmp = [self getCountryByName:@"Egitto"];
	[tmp addNearCountry: [self getCountryByName:@"Europa Meridionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa Orientale"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa del Nord"]];
	[tmp addNearCountry: [self getCountryByName:@"Medio Oriente"]];
	[tmp setContinent:[self getContinentByName:@"Africa"]];	
	
	tmp = [self getCountryByName:@"Congo"];
	[tmp addNearCountry: [self getCountryByName:@"Africa Orientale"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa del Nord"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa del Sud"]];
	[tmp setContinent:[self getContinentByName:@"Africa"]];	
	
	tmp = [self getCountryByName:@"Africa Orientale"];
	[tmp addNearCountry: [self getCountryByName:@"Egitto"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa del Nord"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa del Sud"]];
	[tmp addNearCountry: [self getCountryByName:@"Congo"]];
	[tmp addNearCountry: [self getCountryByName:@"Madagascar"]];
	[tmp setContinent:[self getContinentByName:@"Africa"]];	
	
	tmp = [self getCountryByName:@"Africa Sud"];
	[tmp addNearCountry: [self getCountryByName:@"Africa Orientale"]];
	[tmp addNearCountry: [self getCountryByName:@"Congo"]];
	[tmp addNearCountry: [self getCountryByName:@"Madagascar"]];
	[tmp setContinent:[self getContinentByName:@"Africa"]];
	
	tmp = [self getCountryByName:@"Madagascar"];
	[tmp addNearCountry: [self getCountryByName:@"Africa del Sud"]];
	[tmp addNearCountry: [self getCountryByName:@"Africa Orientale"]];
	[tmp setContinent:[self getContinentByName:@"Africa"]];
	
	tmp = [self getCountryByName:@"Urali"];
	[tmp addNearCountry: [self getCountryByName:@"Siberia"]];
	[tmp addNearCountry: [self getCountryByName:@"Ucraina"]];
	[tmp addNearCountry: [self getCountryByName:@"Afghanistan"]];
	[tmp addNearCountry: [self getCountryByName:@"Cina"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	

	tmp = [self getCountryByName:@"Siberia"];
	[tmp addNearCountry: [self getCountryByName:@"Urali"]];
	[tmp addNearCountry: [self getCountryByName:@"Jacuzia"]];
	[tmp addNearCountry: [self getCountryByName:@"Cita"]];
	[tmp addNearCountry: [self getCountryByName:@"Cina"]];
	[tmp addNearCountry: [self getCountryByName:@"Mongolia"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Cita"];
	[tmp addNearCountry: [self getCountryByName:@"Jacuzia"]];
	[tmp addNearCountry: [self getCountryByName:@"Siberia"]];
	[tmp addNearCountry: [self getCountryByName:@"Mongolia"]];
	[tmp addNearCountry: [self getCountryByName:@"Kamchatka"]];
	[tmp addNearCountry: [self getCountryByName:@"Mongolia"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Kamchatka"];
	[tmp addNearCountry: [self getCountryByName:@"Jacuzia"]];
	[tmp addNearCountry: [self getCountryByName:@"Cita"]];
	[tmp addNearCountry: [self getCountryByName:@"Mongolia"]];
	[tmp addNearCountry: [self getCountryByName:@"Giappone"]];
	[tmp addNearCountry: [self getCountryByName:@"Alaska"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Giappone"];
	[tmp addNearCountry: [self getCountryByName:@"Kamchatka"]];
	[tmp addNearCountry: [self getCountryByName:@"Mongolia"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Mongolia"];
	[tmp addNearCountry: [self getCountryByName:@"Kamchatka"]];
	[tmp addNearCountry: [self getCountryByName:@"Giappone"]];
	[tmp addNearCountry: [self getCountryByName:@"Cita"]];
	[tmp addNearCountry: [self getCountryByName:@"Cina"]];
	[tmp addNearCountry: [self getCountryByName:@"Siberia"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Afghanistan"];
	[tmp addNearCountry: [self getCountryByName:@"Ucraina"]];
	[tmp addNearCountry: [self getCountryByName:@"Urali"]];
	[tmp addNearCountry: [self getCountryByName:@"Medio Oriente"]];
	[tmp addNearCountry: [self getCountryByName:@"Cina"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Afghanistan"];
	[tmp addNearCountry: [self getCountryByName:@"Ucraina"]];
	[tmp addNearCountry: [self getCountryByName:@"Urali"]];
	[tmp addNearCountry: [self getCountryByName:@"Medio Oriente"]];
	[tmp addNearCountry: [self getCountryByName:@"Cina"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Medio Oriente"];
	[tmp addNearCountry: [self getCountryByName:@"Ucraina"]];
	[tmp addNearCountry: [self getCountryByName:@"Europa Meridionale"]];
	[tmp addNearCountry: [self getCountryByName:@"Afghanistan"]];
	[tmp addNearCountry: [self getCountryByName:@"India"]];
	[tmp addNearCountry: [self getCountryByName:@"Egitto"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"India"];
	[tmp addNearCountry: [self getCountryByName:@"Cina"]];
	[tmp addNearCountry: [self getCountryByName:@"Siam"]];
	[tmp addNearCountry: [self getCountryByName:@"Medio Oriente"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Cina"];
	[tmp addNearCountry: [self getCountryByName:@"Mongolia"]];
	[tmp addNearCountry: [self getCountryByName:@"Siberia"]];
	[tmp addNearCountry: [self getCountryByName:@"Afghanistan"]];
	[tmp addNearCountry: [self getCountryByName:@"Urali"]];
	[tmp addNearCountry: [self getCountryByName:@"Medio Oriente"]];
	[tmp addNearCountry: [self getCountryByName:@"India"]];
	[tmp addNearCountry: [self getCountryByName:@"Siam"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Siam"];
	[tmp addNearCountry: [self getCountryByName:@"Cina"]];
	[tmp addNearCountry: [self getCountryByName:@"India"]];
	[tmp addNearCountry: [self getCountryByName:@"Indonesia"]];
	[tmp setContinent:[self getContinentByName:@"Asia"]];
	
	tmp = [self getCountryByName:@"Indonesia"];
	[tmp addNearCountry: [self getCountryByName:@"Nuova Guinea"]];
	[tmp addNearCountry: [self getCountryByName:@"Australia Occidentale"]];
	[tmp addNearCountry: [self getCountryByName:@"Siam"]];
	[tmp setContinent:[self getContinentByName:@"Oceania"]];
	
	tmp = [self getCountryByName:@"Nuova Guinea"];
	[tmp addNearCountry: [self getCountryByName:@"Indonesia"]];
	[tmp addNearCountry: [self getCountryByName:@"Australia Occidentale"]];
	[tmp addNearCountry: [self getCountryByName:@"Australia Orientale"]];
	[tmp setContinent:[self getContinentByName:@"Oceania"]];
	
	tmp = [self getCountryByName:@"Australia Orientale"];
	[tmp addNearCountry: [self getCountryByName:@"Nuova Guinea"]];
	[tmp addNearCountry: [self getCountryByName:@"Australia Occidentale"]];
	[tmp setContinent:[self getContinentByName:@"Oceania"]];

	tmp = [self getCountryByName:@"Australia Occidentale"];
	[tmp addNearCountry: [self getCountryByName:@"Nuova Guinea"]];
	[tmp addNearCountry: [self getCountryByName:@"Australia Orientale"]];
	[tmp addNearCountry: [self getCountryByName:@"Indonesia"]];
	[tmp setContinent:[self getContinentByName:@"Oceania"]];
	
	return self;
}
-(id) initWithFiles:(NSString*)pathCountries :(NSString*)pathContinents{
	[super init];
	continents = [NSKeyedUnarchiver unarchiveObjectWithFile:pathContinents];
	countries = [NSKeyedUnarchiver unarchiveObjectWithFile:pathCountries];
	return self;
}
-(NSSet*) getCountries{
	return countries;
}
-(NSSet*) getContinents{
	return continents;
}
-(Country*) getCountryByName:(NSString*)toSearch{
	for (Country * tmp in countries)
		if ([toSearch isEqualToString:[tmp getName]])
			return tmp;
	return NULL;
}
-(Continent*) getContinentByName:(NSString*)toSearch{
	for (Continent * tmp in continents)
		if ([toSearch isEqualToString:[tmp getName]])
			return tmp;
	return NULL;
}
-(void) writeToFile:(NSString*) pathCountry:(NSString*) pathContinent{
	[NSKeyedArchiver archiveRootObject: countries toFile:pathCountry];
	[NSKeyedArchiver archiveRootObject: continents toFile:pathContinent];
}
@end
